package com.lanjiu.lib.business;

/**
 * @description: 文件传输缓存
 * @author: Panwei
 * @date: 2019/11/1 17:40
 */
public class FileTransmissionCache {

    private int packageCount;
    private long totalLength;
    private String serverPath;
    private String clientPath;

    private int transmissionCount;
    private long transmissionPosition;
    private long transmissionLength;


    public FileTransmissionCache() {
    }

    public FileTransmissionCache(String serverPath, String clientPath) {
        this.serverPath = serverPath;
        this.clientPath = clientPath;
    }

    public FileTransmissionCache(int packageCount, long totalLength, String clientPath) {
        this.packageCount = packageCount;
        this.totalLength = totalLength;
        this.clientPath = clientPath;
    }

    public int getPackageCount() {
        return packageCount;
    }

    public void setPackageCount(int packageCount) {
        this.packageCount = packageCount;
    }

    public long getTotalLength() {
        return totalLength;
    }

    public void setTotalLength(long totalLength) {
        this.totalLength = totalLength;
    }

    public String getServerPath() {
        return serverPath;
    }

    public void setServerPath(String serverPath) {
        this.serverPath = serverPath;
    }

    public String getClientPath() {
        return clientPath;
    }

    public void setClientPath(String clientPath) {
        this.clientPath = clientPath;
    }

    public int getTransmissionCount() {
        return transmissionCount;
    }

    public void setTransmissionCount(int transmissionCount) {
        this.transmissionCount = transmissionCount;
    }

    public long getTransmissionPosition() {
        return transmissionPosition;
    }

    public void setTransmissionPosition(long transmissionPosition) {
        this.transmissionPosition = transmissionPosition;
    }

    public long getTransmissionLength() {
        return transmissionLength;
    }

    public void setTransmissionLength(long transmissionLength) {
        this.transmissionLength = transmissionLength;
    }

    @Override
    public String toString() {
        return "FileTransmissionCache{" +
                "packageCount=" + packageCount +
                ", totalLength=" + totalLength +
                ", serverPath='" + serverPath + '\'' +
                ", clientPath='" + clientPath + '\'' +
                ", transmissionCount=" + transmissionCount +
                ", transmissionPosition=" + transmissionPosition +
                ", transmissionLength=" + transmissionLength +
                '}';
    }
}
